package com.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.MedicamentBean;

import java.util.List;


/**
 * 药剂
 */
public interface MedicamentDao extends BaseMapper<MedicamentBean> {


    /**
     * 分页显示
     * @return
     */
    IPage<MedicamentBean> findAllMedicament();


    /**
     * 添加
     * @param medicamentBean
     */
    void addMedicament(MedicamentBean medicamentBean);


    /**
     * 药剂名药剂类型药剂类别模糊查询
     * @param medicamentName
     * @param medicamentType
     * @param medicamentCategory
     * @return
     */
    List<MedicamentBean> findName(String medicamentName, String medicamentType, String medicamentCategory);

}
